#!/usr/bin/python
# -*- coding: UTF-8 -*-

""" 
@version: 1.0
@author: jin.li.o
@license: Apache Licence 
@contact: x.leevin@gmail.com
@software: PyCharm
@file: clazz_i_04.py
@time: 2018/10/15
"""


def fun1(grade):
    if 0 < grade < 60:
        return "不及格"
    elif 60 <= grade <= 80:
        return "良好"
    elif 80 < grade <= 100:
        return "优秀"
    else:
        return "成绩输入有误"


if __name__ == '__main__':
    print(fun1(-51))
